package com.google.gwt.livinglife.client.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.google.gwt.http.client.URL;
import com.google.gwt.livinglife.server.data.Challenge;

public class ChallengeData extends BasicPostWithStatsData implements Serializable, Cloneable {
	List<ResponseData> responses = new ArrayList<ResponseData>();
	// num_responses is the total number of responses available on the server, which is
	// possibly different from the response.size() (we may not pull all responses to save BW).
	int num_responses = 0;
	private Long group_id;
	private String group_name;

	public ChallengeData() {
		super();
	}



	public List<ResponseData> getResponses() {
		return responses;
	}

	public ChallengeData(String postText, Date creationDate, UserIdData author,
			String embededImage, int liked, int inspired, int numInapropriate,
			List<ResponseData> responses, Long groupId) {
		super(postText, creationDate, author, embededImage, liked, inspired,
				numInapropriate);
		this.responses = responses;
		group_id = groupId;
	}



	public void setResponses(List<ResponseData> responses) {
		this.responses = responses;
	}


	public Long getGroup_id() {
		return group_id;
	}


	public void setGroup_id(Long groupId) {
		group_id = groupId;
	}



	public int getNum_responses() {
		return num_responses;
	}



	public void setNum_responses(int numResponses) {
		num_responses = numResponses;
	}



	public void setGroup_name(String group_name) {
		this.group_name = group_name;
	}



	public String getGroup_name() {
		return group_name;
	}
}
